<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class CardRequest extends BaseRequest
{

    public function rules()
    {
        return [
            'name' => 'required',
            'number' => 'required',
            'bank' => 'required',
            'bank_branch' => 'required',
        ];
    }

    public function attributes()
    {
        return [
            'name' => '姓名',
            'number' => '银行卡号',
            'bank' => '所属银行',
            'bank_branch' => '开户行',
        ];
    }
}
